<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>新增用户</title>
<script type="text/javascript" src="../js/jquery-3.2.1.js"></script>
<script type="text/javascript">
$(function(){
	$("#submit").click(function(){
		$.ajax({
			url:'save.do',
			data:$("form").serialize(),
			dataType:'text',
			success:function(data, textStatus){
				alert(data);
			}});
	});
});
</script>
</head>
<body>
<form action="updateById.do">
 	姓名：<input type="text" name="userName" /><br>
 	密码：<input type="text" name="userPassword" /><br>
 	邮箱：<input type="text" name="userEmail"/><br>
 	<input id='submit' type="button" value="添加"/>
 </form>
</body>
</html>